package Algorithm;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import org.testng.annotations.Test;

@Test
public class EmployeeTest {
    public static void main(String[] args) {
        long start=System.currentTimeMillis();
        boolean[] help=new boolean[1000];
        for(int i=2;i<1000;i++){
            if(help[i]==false) System.out.print(i+" ");
            for(int j=i;j<1000;j+=i){
                help[j]=true;
            }
        }
        long end=System.currentTimeMillis();
        System.out.println();
        System.out.println(end-start);
    }
}
